<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>单列布局-垂直居中</title>
	<style type="text/css">
		/* 
		  第二种 table
		  兼容性不太好
		*/
		.wapper {
			height: 400px;
			width: 100%;
			background: #888;
			display: table-cell;
			vertical-align: middle;
		}

		.box {
			border: 1px solid #f00;
			width:1024px ;
			height: 200px;
			display: inline-block;
		}
	</style>

</head>
<body>
	<div class="wapper">
		<div class="box">
		
		</div>
		
	</div>
</body>
</html>